@extends('layouts.master')

@section('title')
    公司列表——央票通管理后台
@stop

@section('app_css')
    <link rel="stylesheet" href="/resource/css/bootstrap.min.css">
    <link rel="stylesheet" href="/resource/css/font-awesome.min.css">
    <link rel="stylesheet" href="/resource/css/animate.min.css">
    <link rel="stylesheet" href="/resource/css/custom.css">
    <link rel="stylesheet" href="/resource/css/green.css">
    @stop

@section('app_js')
    <!--[if lt IE 9]>
    <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script src="/resource/js/jquery.min.js"></script>
    <script src="/resource/js/bootstrap.min.js"></script>
    <script src="/resource/js/custom.js"></script>
    <!-- icheck -->
    <script src="/resource/js/icheck.min.js"></script>
    <!-- Datatables -->
    <script src="/resource/js/jquery.dataTables.js"></script>
    <script src="/resource/js/J_main.js"></script>
@stop


@section('content')
    <body class="nav-md">
    <div class="container body">
        <div class="main_container">

            @include('common.admin_menu')

                    <!-- top navigation -->
            @include('common.admin_nav')
                    <!-- /top navigation -->


            <!-- page content -->
            <div class="right_col" role="main">

                <div class="">

                    <div class="row cont">

                        <div class="col-md-12 col-sm-12 col-xs-12">
                            <div class="x_panel">
                                <div class="x_title">
                                    <h2>项目列表 <small>项目管理</small></h2>
                                    <div class="clearfix"></div>
                                </div>
                                <div class="x_content" id="list">
                                    <table id="example" class="table table-striped responsive-utilities jambo_table">
                                        <thead>
                                        <tr class="headings">
                                            <th>
                                                <input type="checkbox" class="tableflat">
                                            </th>
                                            <th>编号</th>
                                            <th>项目名称</th>
                                            <th>出票公司</th>
                                            <th>项目规模</th>
                                            <th>年收益率</th>
                                            <th>项目期限</th>
                                            <th>还款方式</th>
                                            <th>票据种类</th>
                                            <th>项目状态</th>
                                            <th>生成时间</th>
                                            <th>上市板块</th>
                                            <th>项目所属</th>
                                            <th class=" no-link last"><span class="nobr">操作</span>
                                            </th>
                                        </tr>
                                        </thead>

                                        <tbody>
                                        @foreach($info as $k => $p)
                                            <tr class="even pointer img-box">
                                                <td class="a-center ">
                                                    <input type="checkbox" class="tableflat">
                                                </td>
                                                <td class=" ">{{$p->project_id}}</td>
                                                <td class="tr-time">
                                                    <span>{{$p->project_name}}</span>
                                                </td>
                                                <td class="tr-time">{{$p->company_name}}</td>
                                                <td class=" ">{{$p->project_scale}}</td>
                                                <td class=" ">{{$p->yield_rate}}</td>
                                                <td class=" ">{{$p->limit}}</td>
                                                <td class=" ">{{ProjectEnum::$Pay_types["$p->pay_id"]}}</td>
                                                <td class=" ">{{ProjectEnum::$Ticket_types["$p->ticket_type"]}}</td>
                                                <td class=" ">@if($p->status == 0)审核中@elseif($p->status == 2)<span style="color: green">审核通过</span>@else<span style="color: red">审核未通过</span>@endif</td>
                                                <td class=" ">{{date('Y-m-d',$p->created)}}</td>
                                                <td class=" ">{{ProjectEnum::$Plate_types["$p->plate"]}}</td>
                                                <td class=" ">@if($p->type ==1 )上市通@else央票通@endif</td>
                                                <td class=" last">
                                                    <a href="/manage_project_modify?project_id={{ $p->project_id }}">编辑</a>
                                                    {{--<a href="javascript:;"  class="delete"  data-project_id="{{ $p->project_id }}">删除</a>--}}
                                                </td>
                                            </tr>
                                        @endforeach

                                        </tbody>

                                    </table>

                                </div>
                            </div>
                        </div>

                        <br />
                        <br />
                        <br />

                    </div>
                </div>

                <!-- footer content -->

                <footer>
                    <div class="">
                        <p class="pull-right">Copyright 2016 mutouw.com All rights reserved. |
                            <span class="lead"> <i class="fa fa-logo-footer"></i> 央票通后台管理系统</span>
                        </p>
                    </div>
                    <div class="clearfix"></div>
                </footer>
                <!-- /footer content -->
            </div>
            <!-- /page content -->

        </div>
    </div>

    <div id="custom_notifications" class="custom-notifications dsp_none">
        <ul class="list-unstyled notifications clearfix" data-tabbed_notifications="notif-group">
        </ul>
        <div class="clearfix"></div>
        <div id="notif-group" class="tabbed_notifications"></div>
    </div>
    </body>
@stop